package top.zhuyougu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 网站配置表
 * </p>
 *
 * @author 猪油骨
 * @since 2022-12-10 01:15:43
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@TableName("b_web_config")
@ApiModel(value = "WebConfig对象", description = "网站配置表")
public class WebConfig implements Serializable {
    private static final long serialVersionUID=1L;
    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("logo(文件UID)")
    @TableField("logo")
    private String logo;

    @ApiModelProperty("网站名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("介绍")
    @TableField("summary")
    private String summary;

    @ApiModelProperty("关键字")
    @TableField("keyword")
    private String keyword;

    @ApiModelProperty("作者")
    @TableField("author")
    private String author;

    @ApiModelProperty("备案号")
    @TableField("record_num")
    private String recordNum;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("网站地址")
    @TableField("web_url")
    private String webUrl;

    @ApiModelProperty("支付宝收款码FileId")
    @TableField("ali_pay")
    private String aliPay;

    @ApiModelProperty("微信收款码FileId")
    @TableField("weixin_pay")
    private String weixinPay;

    @ApiModelProperty("github地址")
    @TableField("github")
    private String github;

    @ApiModelProperty("gitee地址")
    @TableField("gitee")
    private String gitee;

    @ApiModelProperty("QQ号")
    @TableField("qq_number")
    private String qqNumber;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("显示的列表（用于控制邮箱、QQ、QQ群、Github、Gitee、微信是否显示在前端）")
    @TableField("show_list")
    private String showList;

    @ApiModelProperty("登录方式列表（用于控制前端登录方式，如账号密码,码云,Github,QQ,微信）")
    @TableField("login_type_list")
    private String loginTypeList;

    @ApiModelProperty("是否开启评论(0:否 1:是)")
    @TableField("open_comment")
    private String openComment;

    @ApiModelProperty("是否开启赞赏(0:否， 1:是)")
    @TableField("open_admiration")
    private Boolean openAdmiration;

    @ApiModelProperty("游客头像")
    @TableField("tourist_avatar")
    private String touristAvatar;

    @ApiModelProperty("公告")
    @TableField("bulletin")
    private String bulletin;

    @ApiModelProperty("作者简介")
    @TableField("author_info")
    private String authorInfo;

    @ApiModelProperty("作者头像")
    @TableField("author_avatar")
    private String authorAvatar;

    @ApiModelProperty("关于我")
    @TableField("about_me")
    private String aboutMe;

    @ApiModelProperty("是否开启音乐播放器")
    @TableField("is_music_player")
    private Integer isMusicPlayer;


}
